//
//  SISSCalculateCell.m
//  SISSAPP
//
//  Created by 优房网 on 2017/5/17.
//  Copyright © 2017年 优房网. All rights reserved.
//

#import "SISSCalculateCell.h"

@implementation SISSCalculateCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)startCalculateButtonClickAction:(id)sender {
    
    if ([self.delegate respondsToSelector:@selector(calculateButtondidClicked)]) {
        
        [self.delegate calculateButtondidClicked];
    }
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    UIResponder *responder = self;
    UIViewController *viewController;
    while ((responder = [responder nextResponder])){
        if ([responder isKindOfClass: [UIViewController class]]) {
            viewController = (UIViewController *)responder;
            break;
        }
    }
    [viewController.view endEditing:YES];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
